package top.z.work.module.system.api;

import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import top.z.work.module.system.api.logger.SystemLoggerAccessApi;
import top.z.work.module.system.api.logger.dto.SystemLoggerAccessDto;
import top.z.work.module.system.service.SystemLoggerAccessService;

@Service
public class SystemLoggerAccessApiImpl implements SystemLoggerAccessApi {

    @Resource
    SystemLoggerAccessService systemLoggerAccessService;

    /**
     * 创建API访问日志
     */
    @Async
    @Override
    public void createLoggerAccess(SystemLoggerAccessDto data) {
        systemLoggerAccessService.createLoggerAccess(data);
    }
}
